import React from 'react';
import { ScrollView, Text, View,FlatList } from 'react-native';
// import { RefreshState } from '@ecool/react-native-ui/lib/fresh';
export default class TableView extends React.Component {
// ListEmptyComponent={<CommonEmptyView text={'没有对应的订单'} />}
    constructor(){
        super();
        // this.state = {
        //     refreshState: RefreshState.Idle,
        // };refreshState={this.state.refreshState}
    }
    render() {

        return (
            <View style={{ flex: 1 }}>
                {/*<FlatList*/}
                    {/*keyExtractor={(item, index) => index.toString()}*/}

                    {/*renderItem={this.renderItem}*/}
                    {/*data={this.store.dataSource}*/}
                    {/*onHeaderRefresh={this.onHeaderRefresh}*/}
                    {/*onFooterRefresh={this.onFooterRefresh}*/}
                    {/*ItemSeparatorComponent={() => {*/}
                        {/*return (*/}
                            {/*<View*/}
                                {/*style={{*/}
                                    {/*width: 300,*/}
                                    {/*height: 10,*/}
                                    {/*backgroundColor: colors.bg*/}
                                {/*}}*/}
                            {/*/>*/}
                        {/*);*/}
                    {/*}}*/}
                {/*/>*/}

            </View>
        );
    }
    onHeaderRefresh = async () => {
        // this.setState({ refreshState: RefreshState.HeaderRefreshing });
        // try {
        //     await this.store.refreshOrders();
        // } catch (e) {
        //     Toast.show(e.message);
        // }
        // this.setState({
        //     refreshState: this.store.noMoreData && this.store.dataSource.length !== 0
        //         ? RefreshState.NoMoreData
        //         : RefreshState.Idle
        // });
    };

    onFooterRefresh = async () => {
        // this.setState({ refreshState: RefreshState.FooterRefreshing });
        // try {
        //     await this.store.loadMoreOrders();
        // } catch (e) {
        //     Toast.show(e.message);
        // }
        // this.setState({
        //     refreshState: this.store.noMoreData
        //         ? RefreshState.NoMoreData
        //         : RefreshState.Idle
        // });
    };

    renderItem = ({ item }) => {

        return (
            <View>

            </View>
        );
    };
};